package com.nxy.cpfsfe.enumtype;

/**
 * Description：NCS对账文件类型枚举
 * 
 * @author jjw
 *
 */
public enum NCSChkAFileTypEnum {
	
	SUM_CHKA("CSUM","汇总对账文件"),
	RM_BIZ("CDTT","汇兑业务对账文件"),
	BK_DRAF_BIZ("DRAF","银行汇票业务对账文件"),
	NOW_DRCR_BIZ("RTCD","实时借贷业务对账文件"),
	IMMED_XFE_DRCR_BIZ("RTTR","即时转账借贷业务对账文件"),
	QRY_CHK("RQMS","查询查复书对账文件"),
	THRDPRT_XFE_BIZ("CTPT","第三方转账业务对账文件"),
	PROT_MNG_BIZ("AMTR","协议管理业务对账文件"),
	MST_PROC("AJST","差错处理对账文件"),
	CONT_BIZ("CNSP","消费业务对账文件"),
	AUTH_BIZ("AUTH","授权业务对账文件"),
	OL_CONT_RTN_BIZ("OLCR","线上消费退货业务对账文件"),
	ARTFL_BIZ("RMAN","手工业务对账明细文件"),
	CRCRD_REPY_BIZ("CDTC","信用卡还款业务对账文件"),
	GW_P_BIZ("NTPY","网关支付业务对账文件"),
	OL_NOW_CR_BIZ("OTCP","线上实时贷记业务对账文件");
	
	private String code;
	
	private String name;
	
	NCSChkAFileTypEnum(String code,String name){
		this.code = code;
		this.name = name;
	}
	
	public String getCode() {
		return code;
	}

	public String getName() {
		return name;
	}
	
	public static String getNameByCode(String code){
		NCSChkAFileTypEnum[] enums = NCSChkAFileTypEnum.values();
		for(NCSChkAFileTypEnum item : enums){
			if(item.getCode().equals(code)){
				return item.getName();
			}
		}
		return null;
	}

}
